package com.lj.demo.springbootshirojwt.entity;

import com.google.common.base.Objects;

import java.io.Serializable;

/**
 * Title: 权限实体类
 * Description:
 * Date: 2019年06月24日 14:57
 *
 * @author lvjie@hiynn.com
 * @version 1.0
 * Significant Modify：
 * Date                  Author                 Content
 * =================================================================
 * 2019年06月24日         lvjie@hiynn.com         创建文件,实现基本功能
 * =================================================================
 */
public class Authorize implements Serializable {

    private static final long serialVersionUID = 985330716549107939L;

    /**
     * 权限ID
     */
    private String id;

    /**
     * 权限名称
     */
    private String name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Authorize authorize = (Authorize) o;
        return Objects.equal(id, authorize.id) &&
                Objects.equal(name, authorize.name);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id, name);
    }

    @Override
    public String toString() {
        return "Authorize{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
